return "WAFT" & RETURN & RETURN & "Makes a sprite rise up the screen like a bubble, rotating first one way then the other and vibrating horizontally as it rises. " & "The movement is somewhat random." & RETURN & RETURN & "By placing the surface below the starting height of the sprite, the same movement can be used to animate a falling leaf." & RETURN & RETURN & "The sprite will stop moving once it reaches the 'surface'. " & "At this moment it will send a custom WaftBehavior_Done message to all sprites. " & "You can use this message to trigger actions on other sprites, or to modify the current sprite. " & "See the example in the Notes for Developers in the script." & RETURN & RETURN & "If you want random movement that continues indefinitely, use the Random Movement and Rotation behavior instead." & RETURN & RETURN & "PERMITTED MEMBER TYPES:" & RETURN & "bitmap, Flash, vector shape" & RETURN & RETURN & "PARAMETERS:" & RETURN & "* Number of degrees to rotate in each frame" & RETURN & "* Maximum number of frames to rotate in each direction" & RETURN & "* Maximum horizontal pixel shift in each frame" & RETURN & "* Maximum number of frames to move in each direction" & RETURN & "* Number of frames taken to reach the surface" & RETURN & "* Height of the surface"
end
on getBehaviorTooltip me
return "Use with bitmap, Flash and vector shape members." & RETURN & RETURN & "Makes a sprite imitate the movement of a rising bubble or a falling leaf."
return [#myAnglePerFrame: [#comment: "Angle to rotate in each frame", #format: #float, #default: 10], #myTurnFrames: [#comment: "Maximum frames to rotate in each direction", #format: #integer, #default: 10], #myHShiftPerFrame: [#comment: "Maximum horizontal shift in each frame", #format: #integer, #default: 10], #myShiftFrames: [#comment: "Maximum frames to shift in each direction", #format: #integer, #default: 10], #myTotalFrames: [#comment: "Number of frames to reach the surface", #format: #integer, #default: 60], #mySurfaceHeight: [#comment: "Height of surface (pixels from top of stage)", #format: #integer, #default: 0]]